import service from '@/utils/request'

// @Tags CusAuth
// @Summary 创建cusAuth表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusAuth true "创建cusAuth表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /cusAuth/createCusAuth [post]
export const createCusAuth = (data) => {
  return service({
    url: '/cusAuth/createCusAuth',
    method: 'post',
    data
  })
}

// @Tags CusAuth
// @Summary 删除cusAuth表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusAuth true "删除cusAuth表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusAuth/deleteCusAuth [delete]
export const deleteCusAuth = (params) => {
  return service({
    url: '/cusAuth/deleteCusAuth',
    method: 'delete',
    params
  })
}

// @Tags CusAuth
// @Summary 批量删除cusAuth表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除cusAuth表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusAuth/deleteCusAuth [delete]
export const deleteCusAuthByIds = (params) => {
  return service({
    url: '/cusAuth/deleteCusAuthByIds',
    method: 'delete',
    params
  })
}

// @Tags CusAuth
// @Summary 更新cusAuth表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusAuth true "更新cusAuth表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /cusAuth/updateCusAuth [put]
export const updateCusAuth = (data) => {
  return service({
    url: '/cusAuth/updateCusAuth',
    method: 'put',
    data
  })
}

// @Tags CusAuth
// @Summary 用id查询cusAuth表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CusAuth true "用id查询cusAuth表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /cusAuth/findCusAuth [get]
export const findCusAuth = (params) => {
  return service({
    url: '/cusAuth/findCusAuth',
    method: 'get',
    params
  })
}

// @Tags CusAuth
// @Summary 分页获取cusAuth表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取cusAuth表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /cusAuth/getCusAuthList [get]
export const getCusAuthList = (params) => {
  return service({
    url: '/cusAuth/getCusAuthList',
    method: 'get',
    params
  })
}
